package com.qbccn.userservice.mapper;

import com.qbccn.userservice.domain.SsoRole;
import com.qbccn.userservice.dto.Roles;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author linke
 * @date 2020-03-13 下午 21:46
 * @description
 */
public interface SsoRoleMapper {
    int insertSelective(SsoRole record);

    List<SsoRole> getList(@Param("systemCode") String systemCode);

    List<Roles> getRoles(@Param("systemCode") String systemCode, @Param("userId") int userId);

    SsoRole hasRoleName(@Param("roleName") String roleName, @Param("systemCode") String systemCode);

    int update(@Param("id") int id, @Param("roleName") String roleName, @Param("roleDesc") String roleDesc);

}
